package com.db.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping("doIndexUI")
    public String doIndexUI() {
        return "starter";
    }

    @RequestMapping("doPageUI")
    public String doPageUI() {
        return "common/page";
    }

    //rest风格的url
    @RequestMapping("{module}/{moduleUI}")
    public String deModuleUI(@PathVariable String moduleUI) {
        return "sys/" + moduleUI;
    }
}
